package com.example.xm.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class OrderDto {
    private Boolean jifen;
    private Integer userId;
    private Integer dizhiId;
//    1代付款2待发货3已发货4已到货
    private Integer status;
    private Integer statuss;
    //实际付款价格
    private BigDecimal price;
    private List<OrderItemDto> list;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
}
